//
//  UIPickerView_zbextension.swift
//  SoamHami
//
//  Created by BO ZHOU on 2021/2/20.
//  Copyright © 2021 Goldwind. All rights reserved.
//

import UIKit

extension UIPickerView {
    
    open func selectRowAndCallDelegate(_ row: Int, inComponent component: Int, animated: Bool) {
        
        selectRow(row, inComponent: component, animated: animated)
        if self.delegate != nil {
            self.delegate?.pickerView?(self, didSelectRow: row, inComponent: component)
        }
    }
}
